<?php 
if (isset($_POST['id'])){
	$openid='';
	if (isset($_SESSION['openid'])){
		$openid=$_SESSION['openid'];
	}
	$id=json_encode($_POST['id']);
	$bu=$_POST['s'];

	include '../c/config.php';
	$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
	
	$mysqli->query("insert into log(openid,ti,bu,createtime) values('".$openid."','".$id."','".$bu."','".date("Y-m-d H:i:s")."') ");
	 
	 
	echo 'o';
}
?>